// ****************************************************************************** 
// Copyright     :  Copyright (C) 2018, Hisilicon Technologies Co. Ltd.
// File name     :  cmp_c_union_define.h
// Project line  :  K3
// Department    :  K3
// Author        :  Huawei
// Version       :  V100
// Date          :  2015/4/10
// Description   :  HiVcodecV100 VDEC
// Others        :  Generated automatically by nManager V4.2 
// History       :  Huawei 2018/04/10 10:02:39 Create file
// ******************************************************************************

#ifndef __CMP_C_UNION_DEFINE_H__
#define __CMP_C_UNION_DEFINE_H__

/* Define the union U_CMP_YSTADDR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    ystaddr : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_YSTADDR;

/* Define the union U_CMP_UVOFFSET */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    uvoffset : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_UVOFFSET;

/* Define the union U_CMP_YOFFSET_2BIT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    yoffset_2bit : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_YOFFSET_2BIT;

/* Define the union U_CMP_UVOFFSET_2BIT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    uvoffset_2bit : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_UVOFFSET_2BIT;

/* Define the union U_CMP_HEAD_INF_SIZE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    head_inf_size : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_HEAD_INF_SIZE;

/* Define the union U_CMP_LINE_NUM_STADDR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    line_num_staddr : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_LINE_NUM_STADDR;

/* Define the union U_CMP_WATERMARK_START */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    watermark_start_pose : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_WATERMARK_START;

/* Define the union U_CMP_WATERMARK_END */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    watermark_end_pose : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_WATERMARK_END;

/* Define the union U_CMP_YSTRIDE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_0   : 12  ; /* [31:20] */
        unsigned int    ystride : 20  ; /* [19:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_YSTRIDE;

/* Define the union U_CMP_UVSTRIDE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_1    : 12  ; /* [31:20] */
        unsigned int    uvstride : 20  ; /* [19:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_UVSTRIDE;

/* Define the union U_CMP_YSTRIDE_2BIT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_2        : 12  ; /* [31:20] */
        unsigned int    ystride_2bit : 20  ; /* [19:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_YSTRIDE_2BIT;

/* Define the union U_CMP_LINE_LEVEL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    cmp_line_level : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_LINE_LEVEL;

/* Define the union U_CMP_PIC_INFOS */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    frm_cmp_en       : 1  ; /* [31] */
        unsigned int    loss_cmp_en      : 1  ; /* [30] */
        unsigned int    cmp_linear_mode  : 1  ; /* [29] */
        unsigned int    watermark_en     : 1  ; /* [28] */
        unsigned int    protocol         : 4  ; /* [27:24] */
        unsigned int    y_bitdepth       : 4  ; /* [23:20] */
        unsigned int    c_bitdepth       : 4  ; /* [19:16] */
        unsigned int    rsv_3            : 7  ; /* [15:9] */
        unsigned int    yc_bitdepth_8bit : 1  ; /* [8] */
        unsigned int    rsv_4            : 1  ; /* [7] */
        unsigned int    ctb_size         : 3  ; /* [6:4] */
        unsigned int    rsv_5            : 2  ; /* [3:2] */
        unsigned int    pic_structure    : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_PIC_INFOS;

/* Define the union U_CMP_PIC_WID_HGHT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_6                     : 5  ; /* [31:27] */
        unsigned int    pic_width_other_protocol  : 11  ; /* [26:16] */
        unsigned int    rsv_7                     : 5  ; /* [15:11] */
        unsigned int    pic_height_other_protocol : 11  ; /* [10:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_PIC_WID_HGHT;

/* Define the union U_CMP_PIC_INFO_H265 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_8                    : 1  ; /* [31] */
        unsigned int    pic_width_h265_protocol  : 15  ; /* [30:16] */
        unsigned int    rsv_9                    : 1  ; /* [15] */
        unsigned int    pic_height_h265_protocol : 15  ; /* [14:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_PIC_INFO_H265;

/* Define the union U_CMP_PIC_INFO_PIX */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_10               : 1  ; /* [31] */
        unsigned int    pic_width_in_sample  : 15  ; /* [30:16] */
        unsigned int    rsv_11               : 1  ; /* [15] */
        unsigned int    pic_height_in_sample : 15  ; /* [14:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_PIC_INFO_PIX;

/* Define the union U_CMP_RATE_MODE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_12           : 23  ; /* [31:9] */
        unsigned int    y_cmp_rate_mode  : 1  ; /* [8] */
        unsigned int    uv_cmp_rate_mode : 1  ; /* [7] */
        unsigned int    lst_msq_mb_num   : 3  ; /* [6:4] */
        unsigned int    mb_offset_thr    : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_RATE_MODE;

/* Define the union U_CMP_ICE_SHARE_EXT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    o_ice_share_ext : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_ICE_SHARE_EXT;

/* Define the union U_LOSS_CMPIP_DEBUG */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    loss_from_cmpip_debug : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_LOSS_CMPIP_DEBUG;

/* Define the union U_CMP_NOCMP_AWCOEF4 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    nocmp_awcoef4 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_NOCMP_AWCOEF4;

/* Define the union U_CMP_OBUF_AWCOEF4 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    obuf_awcoef4 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_OBUF_AWCOEF4;

/* Define the union U_CMP_ALLCOMMON_AWCOEF23 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    common_awcoef2 : 16  ; /* [31:16] */
        unsigned int    common_awcoef3 : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_ALLCOMMON_AWCOEF23;

/* Define the union U_ALL_CUR_ST */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_13       : 2  ; /* [31:30] */
        unsigned int    cur_st_wibuf : 1  ; /* [29] */
        unsigned int    nxt_st_wibuf : 1  ; /* [28] */
        unsigned int    cur_st_wobuf : 2  ; /* [27:26] */
        unsigned int    nxt_st_wobuf : 2  ; /* [25:24] */
        unsigned int    cur_st_obuf  : 4  ; /* [23:20] */
        unsigned int    nxt_st_obuf  : 4  ; /* [19:16] */
        unsigned int    rsv_14       : 1  ; /* [15] */
        unsigned int    cur_st_nocmp : 3  ; /* [14:12] */
        unsigned int    rsv_15       : 1  ; /* [11] */
        unsigned int    nxt_st_nocmo : 3  ; /* [10:8] */
        unsigned int    rsv_16       : 2  ; /* [7:6] */
        unsigned int    cur_st_wlbuf : 2  ; /* [5:4] */
        unsigned int    rsv_17       : 2  ; /* [3:2] */
        unsigned int    nxt_st_wlbuf : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_ALL_CUR_ST;

/* Define the union U_ALL_BUF_PTR_CNT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_18              : 1  ; /* [31] */
        unsigned int    ibuf_field_cnt      : 7  ; /* [30:24] */
        unsigned int    rsv_19              : 2  ; /* [23:22] */
        unsigned int    ibuf_field_wpt      : 6  ; /* [21:16] */
        unsigned int    ibuf_field_rpt      : 6  ; /* [15:10] */
        unsigned int    lbuf_cnt            : 2  ; /* [9:8] */
        unsigned int    i_pix_data_tmp_pcnt : 2  ; /* [7:6] */
        unsigned int    i_pix_data_tmp_tcnt : 2  ; /* [5:4] */
        unsigned int    i_pix_data_tmp_wpt  : 1  ; /* [3] */
        unsigned int    i_pix_data_tmp_rpt  : 1  ; /* [2] */
        unsigned int    lbuf_wpt            : 1  ; /* [1] */
        unsigned int    lbuf_rpt            : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_ALL_BUF_PTR_CNT;

/* Define the union U_ALL_OBUF_PTR_CNT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_20        : 1  ; /* [31] */
        unsigned int    obuf_coef_cnt : 3  ; /* [30:28] */
        unsigned int    obuf_coef_wpt : 2  ; /* [27:26] */
        unsigned int    obuf_coef_rpt : 2  ; /* [25:24] */
        unsigned int    rsv_21        : 2  ; /* [23:22] */
        unsigned int    obuf_cnt      : 6  ; /* [21:16] */
        unsigned int    rsv_22        : 2  ; /* [15:14] */
        unsigned int    obuf_waddr    : 6  ; /* [13:8] */
        unsigned int    rsv_23        : 2  ; /* [7:6] */
        unsigned int    obuf_raddr    : 6  ; /* [5:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_ALL_OBUF_PTR_CNT;

/* Define the union U_ALL_SGMT_CNT_LAST_CMD */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    sgmt_cnt                : 6  ; /* [31:26] */
        unsigned int    cmp_ibuf_rd_cnt         : 2  ; /* [25:24] */
        unsigned int    obuf_tx_data_cnt        : 4  ; /* [23:20] */
        unsigned int    nocmp_ibuf_rd_cnt       : 4  ; /* [19:16] */
        unsigned int    rsv_24                  : 2  ; /* [15:14] */
        unsigned int    nocmp_last_sgmt_cmd     : 1  ; /* [13] */
        unsigned int    obuf_last_sgmt_cmd      : 1  ; /* [12] */
        unsigned int    tile_pic_boundary       : 2  ; /* [11:10] */
        unsigned int    nocmp_tile_pic_boundary : 2  ; /* [9:8] */
        unsigned int    rsv_25                  : 4  ; /* [7:4] */
        unsigned int    common_chrm_en          : 1  ; /* [3] */
        unsigned int    ibuf_have_data          : 1  ; /* [2] */
        unsigned int    ip_have_data            : 1  ; /* [1] */
        unsigned int    cmp_have_data           : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_ALL_SGMT_CNT_LAST_CMD;

/* Define the union U_ALL_NEED_VALID_RDY */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_26              : 6  ; /* [31:26] */
        unsigned int    i_pix_data_drdy     : 1  ; /* [25] */
        unsigned int    i_pix_data_dneed    : 1  ; /* [24] */
        unsigned int    o_bs_data_drdy      : 1  ; /* [23] */
        unsigned int    o_bs_data_dneed     : 1  ; /* [22] */
        unsigned int    o_cmp_head_drdy     : 1  ; /* [21] */
        unsigned int    o_cmp_head_dneed    : 1  ; /* [20] */
        unsigned int    loss_in_data_drdy   : 1  ; /* [19] */
        unsigned int    loss_in_data_dneed  : 1  ; /* [18] */
        unsigned int    loss_cmp_data_drdy  : 1  ; /* [17] */
        unsigned int    loss_cmp_data_dneed : 1  ; /* [16] */
        unsigned int    rsv_27              : 1  ; /* [15] */
        unsigned int    cmp2emar_awlen      : 7  ; /* [14:8] */
        unsigned int    rsv_28              : 1  ; /* [7] */
        unsigned int    cmp2emar_awprot     : 3  ; /* [6:4] */
        unsigned int    cmp2emar_awvalid    : 1  ; /* [3] */
        unsigned int    emar2cmp_awready    : 1  ; /* [2] */
        unsigned int    cmp2emar_wvalid     : 1  ; /* [1] */
        unsigned int    emar2cmp_wready     : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_ALL_NEED_VALID_RDY;

/* Define the union U_CMP_DEBUG_EMAR_AWCOEF0 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    cmp2emar_awcoef0 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_DEBUG_EMAR_AWCOEF0;

/* Define the union U_CMP_DEBUG_EMAR_AWCOEF12 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    cmp2emar_awcoef1 : 16  ; /* [31:16] */
        unsigned int    cmp2emar_awcoef2 : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_DEBUG_EMAR_AWCOEF12;

/* Define the union U_CMP_DEBUG_EMAR_AWCOEF3_STRB */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    cmp2emar_awcoef3 : 16  ; /* [31:16] */
        unsigned int    cmp2emar_wstrb   : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_CMP_DEBUG_EMAR_AWCOEF3_STRB;

/* Define the union U_SGMT_OVERFLOW_CNT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_29            : 12  ; /* [31:20] */
        unsigned int    sgmt_overflow_cnt : 20  ; /* [19:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_SGMT_OVERFLOW_CNT;


//==============================================================================
/* Define the global struct */
typedef struct
{
    volatile U_CMP_YSTADDR                 CMP_YSTADDR                 ; /* 0 */
    volatile U_CMP_UVOFFSET                CMP_UVOFFSET                ; /* 4 */
    volatile U_CMP_YOFFSET_2BIT            CMP_YOFFSET_2BIT            ; /* 8 */
    volatile U_CMP_UVOFFSET_2BIT           CMP_UVOFFSET_2BIT           ; /* C */
    volatile U_CMP_HEAD_INF_SIZE           CMP_HEAD_INF_SIZE           ; /* 10 */
    volatile U_CMP_LINE_NUM_STADDR         CMP_LINE_NUM_STADDR         ; /* 14 */
    volatile U_CMP_WATERMARK_START         CMP_WATERMARK_START         ; /* 18 */
    volatile U_CMP_WATERMARK_END           CMP_WATERMARK_END           ; /* 1C */
    volatile U_CMP_YSTRIDE                 CMP_YSTRIDE                 ; /* 20 */
    volatile U_CMP_UVSTRIDE                CMP_UVSTRIDE                ; /* 24 */
    volatile U_CMP_YSTRIDE_2BIT            CMP_YSTRIDE_2BIT            ; /* 28 */
    volatile U_CMP_LINE_LEVEL              CMP_LINE_LEVEL              ; /* 2C */
    volatile U_CMP_PIC_INFOS               CMP_PIC_INFOS               ; /* 30 */
    volatile U_CMP_PIC_WID_HGHT            CMP_PIC_WID_HGHT            ; /* 34 */
    volatile U_CMP_PIC_INFO_H265           CMP_PIC_INFO_H265           ; /* 38 */
    volatile U_CMP_PIC_INFO_PIX            CMP_PIC_INFO_PIX            ; /* 3C */
    volatile U_CMP_RATE_MODE               CMP_RATE_MODE               ; /* 40 */
    volatile U_CMP_ICE_SHARE_EXT           CMP_ICE_SHARE_EXT           ; /* 44 */
    volatile U_LOSS_CMPIP_DEBUG            LOSS_CMPIP_DEBUG            ; /* 48 */
    volatile U_CMP_NOCMP_AWCOEF4           CMP_NOCMP_AWCOEF4           ; /* 4C */
    volatile U_CMP_OBUF_AWCOEF4            CMP_OBUF_AWCOEF4            ; /* 50 */
    volatile U_CMP_ALLCOMMON_AWCOEF23      CMP_ALLCOMMON_AWCOEF23      ; /* 54 */
    volatile U_ALL_CUR_ST                  ALL_CUR_ST                  ; /* 58 */
    volatile U_ALL_BUF_PTR_CNT             ALL_BUF_PTR_CNT             ; /* 5C */
    volatile U_ALL_OBUF_PTR_CNT            ALL_OBUF_PTR_CNT            ; /* 60 */
    volatile U_ALL_SGMT_CNT_LAST_CMD       ALL_SGMT_CNT_LAST_CMD       ; /* 64 */
    volatile U_ALL_NEED_VALID_RDY          ALL_NEED_VALID_RDY          ; /* 68 */
    volatile U_CMP_DEBUG_EMAR_AWCOEF0      CMP_DEBUG_EMAR_AWCOEF0      ; /* 6C */
    volatile U_CMP_DEBUG_EMAR_AWCOEF12     CMP_DEBUG_EMAR_AWCOEF12     ; /* 70 */
    volatile U_CMP_DEBUG_EMAR_AWCOEF3_STRB CMP_DEBUG_EMAR_AWCOEF3_STRB ; /* 74 */
    volatile U_SGMT_OVERFLOW_CNT           SGMT_OVERFLOW_CNT           ; /* 78 */

} S_cmp_REGS_TYPE;

/* Declare the struct pointor of the module cmp */
extern volatile S_cmp_REGS_TYPE *gopcmpAllReg;

/* Declare the functions that set the member value */
int iSetCMP_YSTADDR_ystaddr(unsigned int uystaddr);
int iSetCMP_UVOFFSET_uvoffset(unsigned int uuvoffset);
int iSetCMP_YOFFSET_2BIT_yoffset_2bit(unsigned int uyoffset_2bit);
int iSetCMP_UVOFFSET_2BIT_uvoffset_2bit(unsigned int uuvoffset_2bit);
int iSetCMP_HEAD_INF_SIZE_head_inf_size(unsigned int uhead_inf_size);
int iSetCMP_LINE_NUM_STADDR_line_num_staddr(unsigned int uline_num_staddr);
int iSetCMP_WATERMARK_START_watermark_start_pose(unsigned int uwatermark_start_pose);
int iSetCMP_WATERMARK_END_watermark_end_pose(unsigned int uwatermark_end_pose);
int iSetCMP_YSTRIDE_ystride(unsigned int uystride);
int iSetCMP_UVSTRIDE_uvstride(unsigned int uuvstride);
int iSetCMP_YSTRIDE_2BIT_ystride_2bit(unsigned int uystride_2bit);
int iSetCMP_LINE_LEVEL_cmp_line_level(unsigned int ucmp_line_level);
int iSetCMP_PIC_INFOS_frm_cmp_en(unsigned int ufrm_cmp_en);
int iSetCMP_PIC_INFOS_loss_cmp_en(unsigned int uloss_cmp_en);
int iSetCMP_PIC_INFOS_cmp_linear_mode(unsigned int ucmp_linear_mode);
int iSetCMP_PIC_INFOS_watermark_en(unsigned int uwatermark_en);
int iSetCMP_PIC_INFOS_protocol(unsigned int uprotocol);
int iSetCMP_PIC_INFOS_y_bitdepth(unsigned int uy_bitdepth);
int iSetCMP_PIC_INFOS_c_bitdepth(unsigned int uc_bitdepth);
int iSetCMP_PIC_INFOS_yc_bitdepth_8bit(unsigned int uyc_bitdepth_8bit);
int iSetCMP_PIC_INFOS_ctb_size(unsigned int uctb_size);
int iSetCMP_PIC_INFOS_pic_structure(unsigned int upic_structure);
int iSetCMP_PIC_WID_HGHT_pic_width_other_protocol(unsigned int upic_width_other_protocol);
int iSetCMP_PIC_WID_HGHT_pic_height_other_protocol(unsigned int upic_height_other_protocol);
int iSetCMP_PIC_INFO_H265_pic_width_h265_protocol(unsigned int upic_width_h265_protocol);
int iSetCMP_PIC_INFO_H265_pic_height_h265_protocol(unsigned int upic_height_h265_protocol);
int iSetCMP_PIC_INFO_PIX_pic_width_in_sample(unsigned int upic_width_in_sample);
int iSetCMP_PIC_INFO_PIX_pic_height_in_sample(unsigned int upic_height_in_sample);
int iSetCMP_RATE_MODE_y_cmp_rate_mode(unsigned int uy_cmp_rate_mode);
int iSetCMP_RATE_MODE_uv_cmp_rate_mode(unsigned int uuv_cmp_rate_mode);
int iSetCMP_RATE_MODE_lst_msq_mb_num(unsigned int ulst_msq_mb_num);
int iSetCMP_RATE_MODE_mb_offset_thr(unsigned int umb_offset_thr);
int iSetCMP_ICE_SHARE_EXT_o_ice_share_ext(unsigned int uo_ice_share_ext);
int iSetLOSS_CMPIP_DEBUG_loss_from_cmpip_debug(unsigned int uloss_from_cmpip_debug);
int iSetCMP_NOCMP_AWCOEF4_nocmp_awcoef4(unsigned int unocmp_awcoef4);
int iSetCMP_OBUF_AWCOEF4_obuf_awcoef4(unsigned int uobuf_awcoef4);
int iSetCMP_ALLCOMMON_AWCOEF23_common_awcoef2(unsigned int ucommon_awcoef2);
int iSetCMP_ALLCOMMON_AWCOEF23_common_awcoef3(unsigned int ucommon_awcoef3);
int iSetALL_CUR_ST_cur_st_wibuf(unsigned int ucur_st_wibuf);
int iSetALL_CUR_ST_nxt_st_wibuf(unsigned int unxt_st_wibuf);
int iSetALL_CUR_ST_cur_st_wobuf(unsigned int ucur_st_wobuf);
int iSetALL_CUR_ST_nxt_st_wobuf(unsigned int unxt_st_wobuf);
int iSetALL_CUR_ST_cur_st_obuf(unsigned int ucur_st_obuf);
int iSetALL_CUR_ST_nxt_st_obuf(unsigned int unxt_st_obuf);
int iSetALL_CUR_ST_cur_st_nocmp(unsigned int ucur_st_nocmp);
int iSetALL_CUR_ST_nxt_st_nocmo(unsigned int unxt_st_nocmo);
int iSetALL_CUR_ST_cur_st_wlbuf(unsigned int ucur_st_wlbuf);
int iSetALL_CUR_ST_nxt_st_wlbuf(unsigned int unxt_st_wlbuf);
int iSetALL_BUF_PTR_CNT_ibuf_field_cnt(unsigned int uibuf_field_cnt);
int iSetALL_BUF_PTR_CNT_ibuf_field_wpt(unsigned int uibuf_field_wpt);
int iSetALL_BUF_PTR_CNT_ibuf_field_rpt(unsigned int uibuf_field_rpt);
int iSetALL_BUF_PTR_CNT_lbuf_cnt(unsigned int ulbuf_cnt);
int iSetALL_BUF_PTR_CNT_i_pix_data_tmp_pcnt(unsigned int ui_pix_data_tmp_pcnt);
int iSetALL_BUF_PTR_CNT_i_pix_data_tmp_tcnt(unsigned int ui_pix_data_tmp_tcnt);
int iSetALL_BUF_PTR_CNT_i_pix_data_tmp_wpt(unsigned int ui_pix_data_tmp_wpt);
int iSetALL_BUF_PTR_CNT_i_pix_data_tmp_rpt(unsigned int ui_pix_data_tmp_rpt);
int iSetALL_BUF_PTR_CNT_lbuf_wpt(unsigned int ulbuf_wpt);
int iSetALL_BUF_PTR_CNT_lbuf_rpt(unsigned int ulbuf_rpt);
int iSetALL_OBUF_PTR_CNT_obuf_coef_cnt(unsigned int uobuf_coef_cnt);
int iSetALL_OBUF_PTR_CNT_obuf_coef_wpt(unsigned int uobuf_coef_wpt);
int iSetALL_OBUF_PTR_CNT_obuf_coef_rpt(unsigned int uobuf_coef_rpt);
int iSetALL_OBUF_PTR_CNT_obuf_cnt(unsigned int uobuf_cnt);
int iSetALL_OBUF_PTR_CNT_obuf_waddr(unsigned int uobuf_waddr);
int iSetALL_OBUF_PTR_CNT_obuf_raddr(unsigned int uobuf_raddr);
int iSetALL_SGMT_CNT_LAST_CMD_sgmt_cnt(unsigned int usgmt_cnt);
int iSetALL_SGMT_CNT_LAST_CMD_cmp_ibuf_rd_cnt(unsigned int ucmp_ibuf_rd_cnt);
int iSetALL_SGMT_CNT_LAST_CMD_obuf_tx_data_cnt(unsigned int uobuf_tx_data_cnt);
int iSetALL_SGMT_CNT_LAST_CMD_nocmp_ibuf_rd_cnt(unsigned int unocmp_ibuf_rd_cnt);
int iSetALL_SGMT_CNT_LAST_CMD_nocmp_last_sgmt_cmd(unsigned int unocmp_last_sgmt_cmd);
int iSetALL_SGMT_CNT_LAST_CMD_obuf_last_sgmt_cmd(unsigned int uobuf_last_sgmt_cmd);
int iSetALL_SGMT_CNT_LAST_CMD_tile_pic_boundary(unsigned int utile_pic_boundary);
int iSetALL_SGMT_CNT_LAST_CMD_nocmp_tile_pic_boundary(unsigned int unocmp_tile_pic_boundary);
int iSetALL_SGMT_CNT_LAST_CMD_common_chrm_en(unsigned int ucommon_chrm_en);
int iSetALL_SGMT_CNT_LAST_CMD_ibuf_have_data(unsigned int uibuf_have_data);
int iSetALL_SGMT_CNT_LAST_CMD_ip_have_data(unsigned int uip_have_data);
int iSetALL_SGMT_CNT_LAST_CMD_cmp_have_data(unsigned int ucmp_have_data);
int iSetALL_NEED_VALID_RDY_i_pix_data_drdy(unsigned int ui_pix_data_drdy);
int iSetALL_NEED_VALID_RDY_i_pix_data_dneed(unsigned int ui_pix_data_dneed);
int iSetALL_NEED_VALID_RDY_o_bs_data_drdy(unsigned int uo_bs_data_drdy);
int iSetALL_NEED_VALID_RDY_o_bs_data_dneed(unsigned int uo_bs_data_dneed);
int iSetALL_NEED_VALID_RDY_o_cmp_head_drdy(unsigned int uo_cmp_head_drdy);
int iSetALL_NEED_VALID_RDY_o_cmp_head_dneed(unsigned int uo_cmp_head_dneed);
int iSetALL_NEED_VALID_RDY_loss_in_data_drdy(unsigned int uloss_in_data_drdy);
int iSetALL_NEED_VALID_RDY_loss_in_data_dneed(unsigned int uloss_in_data_dneed);
int iSetALL_NEED_VALID_RDY_loss_cmp_data_drdy(unsigned int uloss_cmp_data_drdy);
int iSetALL_NEED_VALID_RDY_loss_cmp_data_dneed(unsigned int uloss_cmp_data_dneed);
int iSetALL_NEED_VALID_RDY_cmp2emar_awlen(unsigned int ucmp2emar_awlen);
int iSetALL_NEED_VALID_RDY_cmp2emar_awprot(unsigned int ucmp2emar_awprot);
int iSetALL_NEED_VALID_RDY_cmp2emar_awvalid(unsigned int ucmp2emar_awvalid);
int iSetALL_NEED_VALID_RDY_emar2cmp_awready(unsigned int uemar2cmp_awready);
int iSetALL_NEED_VALID_RDY_cmp2emar_wvalid(unsigned int ucmp2emar_wvalid);
int iSetALL_NEED_VALID_RDY_emar2cmp_wready(unsigned int uemar2cmp_wready);
int iSetCMP_DEBUG_EMAR_AWCOEF0_cmp2emar_awcoef0(unsigned int ucmp2emar_awcoef0);
int iSetCMP_DEBUG_EMAR_AWCOEF12_cmp2emar_awcoef1(unsigned int ucmp2emar_awcoef1);
int iSetCMP_DEBUG_EMAR_AWCOEF12_cmp2emar_awcoef2(unsigned int ucmp2emar_awcoef2);
int iSetCMP_DEBUG_EMAR_AWCOEF3_STRB_cmp2emar_awcoef3(unsigned int ucmp2emar_awcoef3);
int iSetCMP_DEBUG_EMAR_AWCOEF3_STRB_cmp2emar_wstrb(unsigned int ucmp2emar_wstrb);
int iSetSGMT_OVERFLOW_CNT_sgmt_overflow_cnt(unsigned int usgmt_overflow_cnt);

#endif // __CMP_C_UNION_DEFINE_H__
